package com.example.vv.model.register.base.contract;

import com.example.vv.fragmentWork.base.BaseView;
import com.example.vv.fragmentWork.entity.RegisterEntity;
import com.example.vv.req.REQ_REGISTER;
import com.example.vv.res.net.BaseResponse;
import com.example.vv.res.net.API_FACTORY;

import io.reactivex.Observable;

public interface RegisterContract {
    interface Model{
        default Observable<BaseResponse> req_register(REQ_REGISTER re){
            return API_FACTORY.POST_API_REGISTER(re);
        }
    }
    interface View extends BaseView{
        String getUserName();
        String getPassWord();
        String getRePassWord();
        void getMsg(String msg);

        void setRegisterEntity(RegisterEntity registerEntity);
    }
    interface Presenter{
        void register();
        boolean isFormat();
    }
}
